﻿using System;
using System.Net;

using System.Xml.Linq;

namespace ArmoryBrowser.Entities
{
    public class SecondBar
    {
        #region Fields
        private string _castingField;
        private string _effectiveField;
        private string _notCastingField;
        private string _typeField;
        #endregion
        #region Properties
        public string Casting
        {
            get
            {
                return this._castingField;
            }
            set
            {
                this._castingField = value;
            }
        }

        public string Effective
        {
            get
            {
                return this._effectiveField;
            }
            set
            {
                this._effectiveField = value;
            }
        }

        public string NotCasting
        {
            get
            {
                return this._notCastingField;
            }
            set
            {
                this._notCastingField = value;
            }
        }

        public string Type
        {
            get
            {
                return this._typeField;
            }
            set
            {
                this._typeField = value;
            }
        }
        #endregion
        #region Constructor
        public SecondBar(XElement element)
        {
            Casting = element.GetAttributeValue("casting");
            Effective = element.GetAttributeValue("effective");
            NotCasting = element.GetAttributeValue("notCasting");
            Type = element.GetAttributeValue("type");
        }
        #endregion
    }
}
